﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Polaris.Domain.Model.Dto.Sys_Menu.Response
{
    /// <summary>
    /// 菜单信息字段
    /// </summary>
    public class MenuInfoResponse
    {
        /// <summary>
        /// 菜单id
        /// </summary>
        public Guid Id { get; set; }

        /// <summary>
        /// 上级id，为空则是顶级菜单
        /// </summary>
        public string? ParentID { get; set; }

        /// <summary>
        /// 菜单名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 菜单路由
        /// </summary>
        public string? Router { get; set; }

        /// <summary>
        /// 页面路径
        /// </summary>
        public string? PageUrl { get; set; }

        /// <summary>
        /// 菜单类型 1目录，2菜单，3按钮
        /// </summary>
        public int MenuType { get; set; }

        /// <summary>
        /// 菜单图标
        /// </summary>
        public string? MenuIcon { get; set; }

        /// <summary>
        /// 排序，数字越大，排序越前
        /// </summary>
        public int? Sort { get; set; }

        /// <summary>
        /// 是否可用
        /// </summary>
        public bool Enable { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatedTime { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdatedBy { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdatedTime { get; set; }
    }
}
